package com.base.txl.http;

import java.io.File;
import java.io.IOException;

import okhttp3.MediaType;
import okhttp3.RequestBody;
import retrofit2.Converter;

/**
 * Created by jiajiabao on 17-1-10.
 */

class FileRequestBodyConverter implements Converter<File, RequestBody> {
    FileRequestBodyConverter() {
    }

    public RequestBody convert(File file) throws IOException {
        return RequestBody.create(MediaType.parse("application/otcet-stream"), file);
    }
}
